package com.cloud.salon.client.business.feign;

import com.cloud.salon.common.base.entity.menber.Account;
import com.cloud.salon.common.base.entity.menber.Staff;
import com.cloud.salon.common.base.response.Res;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/*
 * @Description 成员微服务feign
 * @Author wolf--LZH
 * @CreateDate 2019/5/13 0013 下午 12:19
 */
@FeignClient(value = "salon-menber")
public interface MenberFeign {

    @PostMapping(value = "/account/findById")
    Res<Account> findAccount(@RequestBody Integer accountId);

    @PostMapping(value = "/account/findAll")
    Res<List<Account>> findAllAccount();

    @PostMapping(value = "/account/setBalance")
    Res<Integer> setAccountBalance(@RequestBody Account account);

    @PostMapping(value = "/staff/findById")
    Res<Staff> findStaff(@RequestBody Integer staffId);
}
